data = load('dataArray.txt');
len = length(data);
dataPreSign = data(1:4);
dataLength = data(5:8);
dataEndSign = data(len-3:len);
dataArray = data(9:len-4);
x = dataArray(1:2:end);
y0 = dataArray(2:2:end);
y = ones(1, length(y0)) - y0;
figure;
subplot(1,2,1);stem(x,y);
subplot(1,2,2);plot(x,y);